<?php

namespace LowCode\Traits\Events;

trait HasOnUpdateValue
{
    /**
     * onUpdateValue
     * @param string $event 函数 (...values) => void
     * @param string|null $id
     * @param array $modifiers
     * @return $this
     */
    public function onUpdateValue(string $event = "()=>{ }", string $id = null, array $modifiers = []): static
    {
        return $this->event("update:value",jsFn($event, $id), $modifiers);
    }
}
